import request from '@/utils/request';
export async function feedbackList(params) {
  const res = await request.get('/massage/feedback/page', { params });
  if (res.data.code === 200) {
    return res.data.data;
  }
  return Promise.reject(new Error(res.data.message));
}
export async function feedbackDelete(id) {
  const res = await request.delete('/massage/feedback/' + id);
  console.log(res);
  if (res.data.code === 200) {
    return res.data.message;
  }
  return Promise.reject(new Error(res.data.message));
}
